from django.db import models


# Create your models here.

# class NewsModel(models.Model):
# 	n_title = models.CharField(max_length=100, unique=True)  # 标题
# 	n_desc = models.CharField(max_length=2000)  # 描述
# 	sys_flag = models.BooleanField(default=True)  # 状态标识符
# 	n_category = models.ForeignKey('NewsCategory', related_name='newscategory', unique=True,
# 								   on_delete=models.CASCADE)  # 分类id
# 	thumbnail_img = models.CharField(max_length=2000)  # 缩略图
# 	n_content = models.TextField(max_length=10000)  # 新闻内容
# 	n_auth = models.ForeignKey('User', related_name='user', unique=True, on_delete=models.CASCADE)  # 作者
